<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线支付 - {dede:global.cfg_webname/}</title>
<link href="../../img/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../img/js/all.js"></script>
<script language="javascript" src="../../img/js/cookie.js"></script>
<script language="javascript" src="../../img/js/Calendar.js"></script>
<script language="javascript" src="../../img/js/manage.js"></script>

<script language="javascript">
okb=<?php echo $dj; ?>;

function bao(m)
{
m=m.split("~");
var poo=m[0];
var po=m[1];
var zj=<?php echo $ro['jiage'] ?>;
if(okb!=0) zj=okb;
var jgg;
jgg=Number(zj)-Number(poo);
if(jgg<0) jgg=0;
document.getElementById('jiage_').value=jgg;
document.getElementById('pid').value=po;
}
</script>

</head>
 
<body>
<!--Head-->
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_index.php");
	  DedeXHTTP = null;
}
</script>
<?php
   pasterTempletDiy("default/head_index.htm");
?>
<!--Head_end-->
<div id="wz">&nbsp;&nbsp;&nbsp;您当前所在的位置： <a href="/">网站首页</a> » <a href="/users/index.php">会员中心首页</a> » 在线支付</div>
<!--Main-->
<div id="page">
  <?php include(DEDEMEMBER."/templets/left.htm"); ?>
  <div id="uright">
    <div id="urtitle"><strong>在线支付</strong></div>

    <div id="urborder">           <!--<div id="urmessage">
        <div>完善您的个人资料（带※）并激活您的邮箱， 以便获取50元抵用卷。</div>
      </div>
      -->
	 
            <form name="vbform1" action="alipay.php" id="formManageEidt" method="post" onSubmit="return verify()">
            <input type="hidden" name="dopost" value="save" />
			 <input type="hidden" name="aid" value="<?php echo $aid;?>" />
			 <input type="hidden" name="pid" id="pid"  />
          <ul id="urinput" style="padding-bottom:10px;_padding-bottom:0;">
            <li style="padding:0;">选择您的抵用券： 
			<select name="dyq" onchange="bao(this.options[this.options.selectedIndex].value)"> 
			<option value="">请选择抵用券</option>
			<?php if(empty($alipay_dyq))
			{
			echo '<option value="">您还没有可用的抵用券</option>';
			}
			 else
			 {
			 foreach ($alipay_dyq as $dyq8)
			 {
			 ?>
			 
			 <option value='<?php echo $dyq8[subject];?>~<?php echo $dyq8[id];?>'>(编号：<?php echo $dyq8[id];?>) <?php echo $dyq8[subject];?> 元</option>
			 <?php 
			 }
			  }?>
			</select>  
			
			
			&nbsp;&nbsp;&nbsp;&nbsp;需支付金额： <input type="text" name="jiage_" id="jiage_" style="color:#F60; font-size:22px; font-weight:bold; border:0px; width:50px;" value="<?php printf("%01.2f",$ro['jiage']);?>" readonly="readonly"/>元 </li> 
           <script language="javascript">
		   if(okb!=0) 
{
zj=okb;
document.getElementById('jiage_').value=okb;
}
else
{
document.getElementById('jiage_').value=<?php printf("%01.2f",$ro['jiage']);?>;
}
		   </script>
          </ul>
        <hr />
         <div style="text-align:center; margin-top:20px;"><INPUT id=button value="继续完成支付"　　　　 type=submit name=button style="color:#FF0000; width:100px;"></div>
		 
		 </form>
    </div>
  </div>
</div>
<!--Main_end-->
<!--Footer-->
  <!--Explanation-->

<?php
   pasterTempletDiy("default/footer.htm");
?>


<!--Footer_end-->
</body>
</html>